<template>
  <div class="ano-pannel-hd">
    <div class="back" @click="handleBack">
      <i class="el-icon-arrow-left" v-if="hasBackBtn"></i>
    </div>
    <div class="title">{{ title }}</div>
    <div class="close" @click="handleClose">
      <i class="el-icon-close"></i>
    </div>
  </div>
</template>

<script>

export default {
  name: 'anoArtPanel',
  props: {
    title: {
      type: String,
      default: ''
    },
    hasBackBtn: {
      type: Boolean,
      default: false
    }
  },
  created() {
  },
  methods: {
    handleBack() {
      this.$emit('onBack')
    },
    handleClose() {
      this.$emit('onClose')
    }
  }
}
</script>

<style lang="less" scoped>
.ano-pannel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background-color: #f3f3f3;
  .back,
  .close {
    width: 32px;
    height: 32px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
  }
}
</style>
